#include<stdio.h>
#include<math.h>
int judge(int m);
int main(void)
{   int number,n;
	scanf("%d",&number);
	n=judge(number);
	printf("%d",n);
	return 0;
}
int judge(int m)
{
	int i,tenn;
	double h;
	for(i=1;i<20;i++)
	{
		tenn=pow(10,i);
		h=m/tenn;
		if(h<1)
		return i;
	}
}
